package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.annotation.OperLog;
import com.ytjj.qmyx.admin.constants.SysLogConstants;
import com.ytjj.qmyx.admin.model.request.BankerProductRequest;
import com.ytjj.qmyx.admin.service.BankerProductSpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * 
 * @Version: 1.0
 *
 * 供应商产品库-商品规格
 */
@RestController
@RequestMapping("/bankerSpec")
public class BankerProductSpecController {

    @Autowired
    private BankerProductSpecService bankerProductSpecService;

    @PostMapping("/list")
    @OperLog(operModule = "供应商产品库-商品规格", operDesc = "商品规格", operType = SysLogConstants.OPERATION_SELECT)
    public CommonResult getSpecList(@RequestBody BankerProductRequest bankerProductRequest) {
        return CommonResult.success(bankerProductSpecService.getSpecList(bankerProductRequest));
    }
}
